package com.uiao.jmsmq;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * Created by cuihao on 2018/3/10.
 */

@Component
public class Consumer {

    @JmsListener(destination = "mytest.queue")
    public void receive(String text) {
        System.out.println("Consumer收到的报文为：" + text);
    }
}
